<?php /* Smarty version 2.6.26, created on 2014-10-22 17:09:15
         compiled from index.html */ ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="<?php echo @__VIEW__; ?>
/Index/css.css">
    </head>
    <body>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

        <div id="crumb">
            <a href="">悦读</a> &nbsp;&nbsp;>&nbsp;&nbsp; <span>全部文章</span>
        </div>
        <div id="main_box">
            <div id="left_box">
                <?php unset($this->_sections['d']);
$this->_sections['d']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['d']['name'] = 'd';
$this->_sections['d']['show'] = true;
$this->_sections['d']['max'] = $this->_sections['d']['loop'];
$this->_sections['d']['step'] = 1;
$this->_sections['d']['start'] = $this->_sections['d']['step'] > 0 ? 0 : $this->_sections['d']['loop']-1;
if ($this->_sections['d']['show']) {
    $this->_sections['d']['total'] = $this->_sections['d']['loop'];
    if ($this->_sections['d']['total'] == 0)
        $this->_sections['d']['show'] = false;
} else
    $this->_sections['d']['total'] = 0;
if ($this->_sections['d']['show']):

            for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1;
                 $this->_sections['d']['iteration'] <= $this->_sections['d']['total'];
                 $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++):
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first']      = ($this->_sections['d']['iteration'] == 1);
$this->_sections['d']['last']       = ($this->_sections['d']['iteration'] == $this->_sections['d']['total']);
?>
                <div class="list">
                    <div class="pic"> 
                        <img src="<?php echo @__ROOT__; ?>
/<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['thumb']; ?>
" alt="">
                    </div>
                    <div class="article">
                        <div class="title"><a href="?a=blog&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
">
                            <?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['title']; ?>

                        </a>
                        </div class="title">
                        <div class="time">
                            <?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['addtime']; ?>

                        </div>
                        <div class="content">
                           <?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['content']; ?>

                        </div>
                        <div class="reader">
                            <i></i><span>43</span> 浏览
                        </div>
                    </div>
                </div>
                <?php endfor; endif; ?>
            </div>
            <div id="right_box">
                <div class="relative_reading_header">
                    <h2>
                        最新博客
                    </h2>  
                </div>
                <ul class="relative_reading_list">
                    <?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['NewBlog']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
                    <li>
                        <a href="?m=Index&c=Index&a=blog&cid=<?php echo $this->_tpl_vars['NewBlog'][$this->_sections['n']['index']]['cid']; ?>
&bid=<?php echo $this->_tpl_vars['NewBlog'][$this->_sections['n']['index']]['bid']; ?>
" class="title"><?php echo $this->_tpl_vars['NewBlog'][$this->_sections['n']['index']]['title']; ?>
</a>
                        <div class="reading_info">
                            <i></i> <span><?php echo $this->_tpl_vars['NewBlog'][$this->_sections['n']['index']]['click']; ?>
</span> 浏览
                        </div>
                    </li>
                   <?php endfor; endif; ?>
                </ul>
            </div>
           
        </div>
        <div id="page">
            <?php echo $this->_tpl_vars['page']; ?>

           
        </div>
        <div id="footer">
            <div id="footer_box">
                Copyright © 2010 - 2014 houdunwang All Rights Reserved.  后盾教育 版权所有
            </div>
        </div>
    </body>
</html>